package com.lin.cloud.disk.entity.request.directory;

import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 *  创建目录请求类
 * @author ljc
 * @date 2020/12/30 22:11
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class CreateDirectoryRequest extends AccountRequestDTO {


    @ApiModelProperty(value = "目录名称", name = "directoryName")
    @NotBlank(message = "目录名称不能为空")
    private String directoryName;

    @ApiModelProperty(value = "父目录ID 传了有顶级节点 不传为一级节点", name = "parentId")
    private String parentId;

}
